<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="css/yangs.css">
	<title>Document</title>
</head>
<body>
    <div>
        <h1>员工信息列表 </h1>
          <form style="text-align: left;margin-bottom: 20px;" action="" method="get">
          <span style="font-size: 14px; color: #999;">快速查询：</span> <input type="text" name="search" value="<?php echo $search;?>" />
          <input type="submit" value="搜索" class="btn"/> 
      </form>
    </div>
<div class="main">
	<div class="biaoge">
			<table border="1">
		  <tr>
		    <th>ID</th>
		    <th>姓名</th>
		    <th>所属部门</th>
		    <th>头像</th>
		    <th>出生日期</th>
		    <th>入职时间</th>
		    <th>相关操作</th>
		  </tr>
                   <?php
            foreach ($bbsdata as $v)
            {
            ?>
		  <tr>
		    <td><?php echo $v['e_id']; ?></td>
		    <td><?php echo $v['e_name']; ?></td>
		    <td><?php echo $v['e_dept']; ?></td>
		    <td><img src="<?php echo $v['e_img']; ?>" alt="" /></td>
		    <td><?php echo $v['date_of_birth']; ?></td>
		    <td><?php echo $v['date_of_entry']; ?></td>
		    <td><a class="edit_a" href="db_update.php?id=<?php echo $v['e_id']?>">修改</a>
                        <a class="edit_a" href="javascript:" onclick="if(confirm('确定删除吗？')) location.href='db_del.php? id=<?php echo$v['e_id']?>'">删除</a></td>
		  </tr>
                    <?php 
                }
            ?>
                  
		</table>
	</div>
       <div id="right">
			<h2>员工添加</h2>
                        <form action="db_add.php" method="post">
				<p class="one">
                                    名字:<input class="name" name="e_name" type="text" placeholder="" /><br/>
				所属部门:<input class="bumen" name="e_dept" type="text" placeholder="" />
				</p>
				<p class="tow">
					<input type="radio" name="e_img" value="images/1.jpg" checked="checked" /><img src=" images/1.jpg" alt="" />
					<input type="radio" name="e_img" value="images/2.jpg" /><img src=" images/2.jpg" alt="" />
					<input type="radio" name="e_img" value="images/3.jpg" /><img src=" images/3.jpg" alt="" />
					<input type="radio" name="e_img" value="images/4.jpg" /><img src=" images/4.jpg" alt="" />
				</p>
                                <p class="one">
				出生年月:<input class="brith" name="date_of_birth" type="text" placeholder="" /><br/>
				入职日期:<input class="entry" name="date_of_entry" type="text" placeholder="" />
				</p>
				<p class="thr">
                                    <input class="btn" type="submit" value="保存资料" />
                                    <input class="btn" type="reset" value="重新填写" />
                                </p>
			</form>
			<div class="close"></div>
</div>
</div>	
</body>
</html>